
/*
 *    MCreator note: This file will be REGENERATED on each build.
 */
package net.mcreator.bombwork.init;

import net.minecraftforge.registries.RegistryObject;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.DeferredRegister;

import net.minecraft.world.level.block.Block;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.BlockItem;

import net.mcreator.bombwork.item.BombarrowItem;
import net.mcreator.bombwork.BombworkMod;

public class BombworkModItems {
	public static final DeferredRegister<Item> REGISTRY = DeferredRegister.create(ForgeRegistries.ITEMS, BombworkMod.MODID);
	public static final RegistryObject<Item> BOMBSPACELAB = block(BombworkModBlocks.BOMBSPACELAB, BombworkModTabs.TAB_BOMBWORKSPACE);
	public static final RegistryObject<Item> BOMBGRASS = block(BombworkModBlocks.BOMBGRASS, BombworkModTabs.TAB_BOMBWORKSPACE);
	public static final RegistryObject<Item> BOMBARROW = REGISTRY.register("bombarrow", () -> new BombarrowItem());
	public static final RegistryObject<Item> GUNFORWOOD_WOOD = block(BombworkModBlocks.GUNFORWOOD_WOOD, BombworkModTabs.TAB_BOMBWORKSPACE);
	public static final RegistryObject<Item> GUNFORWOOD_LOG = block(BombworkModBlocks.GUNFORWOOD_LOG, BombworkModTabs.TAB_BOMBWORKSPACE);
	public static final RegistryObject<Item> GUNFORWOOD_PLANKS = block(BombworkModBlocks.GUNFORWOOD_PLANKS, BombworkModTabs.TAB_BOMBWORKSPACE);
	public static final RegistryObject<Item> GUNFORWOOD_LEAVES = block(BombworkModBlocks.GUNFORWOOD_LEAVES, BombworkModTabs.TAB_BOMBWORKSPACE);
	public static final RegistryObject<Item> GUNFORWOOD_STAIRS = block(BombworkModBlocks.GUNFORWOOD_STAIRS, BombworkModTabs.TAB_BOMBWORKSPACE);
	public static final RegistryObject<Item> GUNFORWOOD_SLAB = block(BombworkModBlocks.GUNFORWOOD_SLAB, BombworkModTabs.TAB_BOMBWORKSPACE);
	public static final RegistryObject<Item> GUNFORWOOD_FENCE = block(BombworkModBlocks.GUNFORWOOD_FENCE, CreativeModeTab.TAB_DECORATIONS);
	public static final RegistryObject<Item> GUNFORWOOD_FENCE_GATE = block(BombworkModBlocks.GUNFORWOOD_FENCE_GATE, CreativeModeTab.TAB_REDSTONE);
	public static final RegistryObject<Item> GUNFORWOOD_PRESSURE_PLATE = block(BombworkModBlocks.GUNFORWOOD_PRESSURE_PLATE,
			CreativeModeTab.TAB_REDSTONE);
	public static final RegistryObject<Item> GUNFORWOOD_BUTTON = block(BombworkModBlocks.GUNFORWOOD_BUTTON, BombworkModTabs.TAB_BOMBWORKSPACE);
	public static final RegistryObject<Item> DIRTFORGUN = block(BombworkModBlocks.DIRTFORGUN, BombworkModTabs.TAB_BOMBWORKSPACE);

	private static RegistryObject<Item> block(RegistryObject<Block> block, CreativeModeTab tab) {
		return REGISTRY.register(block.getId().getPath(), () -> new BlockItem(block.get(), new Item.Properties().tab(tab)));
	}
}
